package com.eason.dao;

import com.eason.pojo.User;

import java.util.List;
import java.util.Map;

public interface userMapper {
    //查询全部用户
    List<User> getUserList();

    //根据ID查询用户
    User getUserById(int id);

    //插入用户
    int addUser(User user);

    //用map插入用户
    int addUser2(Map<String,Object> map);

    //修改用户
    int updataUser(User user);

    //删除用户
    int deleteUser(int id);

    //模糊查询
    List<User> getUserLike(String name);

    //分页查询
    List<User> getUserByLimit(Map<String,Integer> map);
}
